Skip to content

docs: document Neon Auth JWT organization claim#4965

Open
philip wants to merge 2 commits into
mainfrom
docs/auth-jwt-org-claim
Open

docs: document Neon Auth JWT organization claim#4965
philip wants to merge 2 commits into
mainfrom
docs/auth-jwt-org-claim

Conversation

@philip
Copy link
Copy Markdown
Collaborator

@philip philip commented May 27, 2026

A recent PR shipped the o claim, an org context object added to JWTs when the session has an active organization. Changes:

  • plugins.md: mark Organization as fully Supported
  • jwt.md: drop stale image field from payload example; add org payload example with o claim; update Custom claims limitation
  • organization.md: remove "JWT claims under development" caveat; add "Organization context in JWTs" section (setActive flow, o fields, clearing context, role staleness warning)

Draft, do not merge.

@philip philip requested a review from danieltprice as a code owner May 27, 2026 14:30
@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
neon-next Ready Ready Preview, Comment May 27, 2026 11:34pm

Request Review

Add multi-tenant RLS pattern to access-control.md (jwt_organization()
helper, org-scoped + personal row policies, NULL guard explanation).
Extend organization.md with a Using the org claim for RLS subsection
linking to the full pattern. Expand pg_session_jwt auth.jwt() entry
with o claim extraction examples.

Co-authored-by: Isaac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant